package edu.sctu.practice.class02.xuejiahua.assign03.ass03;

/**
 * Created by Administrator on 2015/10/29.
 */
public class CloneableCircle extends Circle implements Cloneable{

    public Name creator;

    public Name getCreator(){
        return creator;
    }

    public void setCreator(Name creator) {
        this.creator = creator;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        CloneableCircle cloneable = (CloneableCircle) super.clone();
        cloneable.setCreator((Name) cloneable.getCreator().clone());
        return cloneable;
    }



}
